import time
from selenium.webdriver.common.by import By
from base import Base
class Page(Base):
    def so(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="cn.xuexi.android:id/text"]')
        ele=self.find_ele(loc)
        return ele
    time.sleep(10)
    def nei(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    time.sleep(10)
    def an(self):
        loc=(By.ID,'android:id/search_mag_icon')
        ele=self.find_ele(loc)
        return ele
    time.sleep(10)
    def qing(self):
        loc=(By.ACCESSIBILITY_ID,'清除查询')
        ele=self.find_ele(loc)
        return ele
    time.sleep(10)
    def sosuo(self):
        loc=(By.RESOURCE_ID,'cn.xuexi.android:id/img_search_left')
        ele=self.find_ele(loc)
        return ele
    def duan(self):
        loc=(By.XPATH,'//android.view.View[@text="新闻联播"]')
        ele=self.find_ele(loc)
        return ele